package com.xxwy.protocal;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @author wy
 * @date 2020/3/9 0:02
 */
public class XxwyServerHandler extends SimpleChannelInboundHandler<XxwyProtocol> {
  @Override
  protected void channelRead0(ChannelHandlerContext channelHandlerContext, XxwyProtocol xxwyProtocol) throws Exception {
    System.out.println("client chat:" + xxwyProtocol.toString());
  }
}
